package com.shuogesha.platform.action.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import com.shuogesha.platform.client.UploadFeignClient;

import feign.Headers;

@RestController
@RequestMapping("/api/")
public class ImageUploadAct {
	@RequestMapping(value = "/file/image_upload", method = RequestMethod.POST)
 	public Object image_upload(MultipartFile file) {
		return uploadFeignClient.image_upload(file);
	}
	
	@Autowired
	private UploadFeignClient uploadFeignClient;
}
